<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<LCA.Community.DAL.Model.Event>" %>
<%@ Import Namespace="System.Globalization" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeaderContent" runat="server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="content-main">
        <h2><img src="<%= Url.Content("~/Content/images/FinalDesign/Icons/users24.png") %>" />Detalles del evento</h2>
        <em>Grupo organizador:</em> <%= Model.PartitionKey %><br />
        <em>Nombre:</em> <%= Model.Name %><br />
        <em>Fecha:</em> <%= Model.Date.ToString("D", new CultureInfo("es-ES")) %> a las <%= Model.Date.ToString("T", new CultureInfo("es-ES"))%><br />
        <em>Capacidad:</em> <%= Model.Capacity %><br />
        <em>Lugar: </em> <%= Model.Place %><br />
        <em>Descripcion:</em> <%= Model.Description %> <br />
        <% if ((bool)ViewData["owner"]){ %>
        <a href="<%= Url.Action("Edit","Events",new { eventID = Model.RowKey, groupID = Model.PartitionKey }) %>"><img src="<%= Url.Content("~/Content/images/FinalDesign/Icons/note_edit24.png") %>" /></a>
        <%} %>
    </div>
    
    <div class="content-right">
        <% Html.RenderPartial("GroupMenu",ViewData["group"]); %>
    </div>
</asp:Content>


